@import '~ant-design-vue/es/style/themes/default.less';
@import '~nprogress/nprogress.css';
@import './less/app.less';

html,
body,
#app, #root {
  height: 100%;
}
.hide{
  display: none;
}
.colorWeak {
  filter: invert(80%);
}

.ant-layout.layout-basic {
  height: 100vh;
  min-height: 100vh;
}

canvas {
  display: block;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul,
ol {
  list-style: none;
}

// 数据列表 样式
.table-alert {
  margin-bottom: 16px;
}
// 数据列表 操作
.table-operator {
  margin-bottom: 18px;

  button {
    margin-right: 8px;
  }
}
// 数据列表 搜索条件
.table-page-search-wrapper {

  .ant-form-inline {
    .ant-form-item {
      display: flex;
      margin-bottom: 24px;
      margin-right: 0;

      .ant-form-item-control-wrapper {
        flex: 1 1;
        display: inline-block;
        vertical-align: middle;
      }

      > .ant-form-item-label {
        line-height: 32px;
        padding-right: 8px;
        width: auto;
      }
      .ant-form-item-control {
        height: 32px;
        line-height: 32px;
      }
    }
  }

  .table-page-search-submitButtons {
    display: block;
    margin-bottom: 24px;
    white-space: nowrap;
  }
}

@media (max-width: @screen-xs) {
  .ant-table {
    width: 100%;
    overflow-x: auto;
    &-thead > tr,
    &-tbody > tr {
      > th,
      > td {
        white-space: pre;
        > span {
          display: block;
        }
      }
    }
  }
}

.ant-layout.ant-layout-has-sider > .ant-layout, .ant-layout.ant-layout-has-sider > .ant-layout-content{
  overflow-y: hidden;
}
.flex-1{
  flex: 1;
}
.text-align-left{
  text-align: left;
}
.text-align-right{
  text-align: right;
}
.text-align-center{
  text-align: center;
}
.ztree *{
  font-size: 14px;
}
.f12{
  font-size: 12px;
}
.f14{
  font-size: 14px;
}
.f15{
  font-size: 15px;
}
.f16{
  font-size: 16px;
}
.f17{
  font-size: 17px;
}
.f18{
  font-size: 18px;
}
.f19{
  font-size: 19px;
}
.f20{
  font-size: 20px;
}
.f21{
  font-size: 21px;
}
.f22{
  font-size: 22px;
}
.f23{
  font-size: 23px;
}
.f24{
  font-size: 24px;
}
.h-full{
  height: 100%;
}
.h-half-full{
  width: 50%;
}
.w-full{
  width: 100%;
}
.w-half-full{
  width: 50%;
}
.ztree li {
  span{
    vertical-align: middle;
  }
  a{
    color: rgba(0, 0, 0, 0.65);
    width: calc(100% - 30px);
    //overflow: hidden;
    //white-space: nowrap;
    //text-overflow: ellipsis;
    &:hover{
      text-decoration: none;
    }
  }
  a.curSelectedNode{
    background-color: #FFE6B0;
    border: none
  }
  ul.line{
    height: auto;
  }
}
.display-flex{
  display: flex;
  justify-content: center;
  align-items: center;
}
.display-flex-right{
  display: flex;
  justify-content: flex-end;
  align-items: center
}
.display-flex-column{
  display: flex;
  flex-direction: column;
}
.border{
  border: 1px solid @grid-form-border-color;
}
.border-none{
  border: none
}
// .ant-form-item-control{
//   span{
//     width: 100%;
//   }
// }
.ant-collapse-header {
  text-align: left;
  padding: 5px 32px !important;
}
.btns{
  text-align: left;
  width: 100%;
  button{
    margin-right: 5px;
  }
}
.ant-table-thead > tr > th, .ant-table-tbody > tr > td{
  padding: 10px 16px !important;
}
.fileContent{
    font-size: 16px;
}
.detailContent{
  height: calc(100% - 40px);
  overflow-y: auto;
}
.collect-0 {
  color: rgb(88, 102, 110);
}
.collect-1 {
  color: #FFE731;
}

.ant-tree-node-content-wrapper{
  width: 93%;
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  vertical-align: text-top;
}

.icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  vertical-align: -.125em;
}

.dataModel-form {
  .ant-col, .ant-form-explain {
    display: inline-block;
  }
  .ant-input, .ant-select, .ant-input-number {
    width: 295px;
  }
  .ant-form-item-label {
    width: 75px;
  }
  .ant-form-item {
    margin-bottom: 2px;
  }
  .ant-input-suffix {
    display: none;
  }
  .ant-input-search-enter-button{
    .ant-input, .ant-select, .ant-input-number {
      width: 230px;
    }
  }
}

.color-blue{
  color: blue;
}

.flex-row {
  display: flex;
  flex-direction: row;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.left {
  float: left;
}

.right {
  float: right;
}

.layout {
  height: 100%;
  background-color: #fff;
  margin: 0;
  padding: 0 10px 10px 10px;
  >.top {
    margin-top: 10px;
    >.left {
      >button {
        margin-right: 8px;
      }
    }
    >.right {
      >button {
        margin-left: 8px;
      }
      >.ant-input-search {
        width: 220px;
      }
    }
  }
  >.center {
    margin-top: 10px;
  }
  a {
    color: blue;
    text-decoration-line: underline;
    &:hover {
      color: #2440b3;
      text-decoration-line: underline;
    }
  }

}

.ant-table-row-selected {
  background-color: white;
  >td {
    background-color: white !important;
  }
}

.selected {
  background-color: rgb(230, 247, 255);
  >td {
    background-color: rgb(230, 247, 255) !important;
  }
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-corner, ::-webkit-scrollbar-track {
  background-color: white;
  border-radius: 0px;
}

::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background-color: #d6d9dc;
}


.loading{
  top: 55px;
  left: 0;
  z-index: 100;
  position: absolute;
  background: rgba(0, 0, 0, 0.05);
  width: 100%;
  height: calc(100% - 108px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tabs-detail {
  height: 100%;
  border: 1px solid #dcdfe6;
  .ant-tabs-nav {
    margin-left: 5px;
  }
  > .ant-tabs-content {
    height: calc(100% - 45px);
    > .ant-tabs-tabpane {
      > .content {
        height: 100%;
        overflow: auto;
      }
      &.ant-tabs-tabpane-active {
        height: 100%;
      }
      &.ant-tabs-tabpane-inactive {
        height: 0;
      }
    }
  }
}

.dist-hbox {
  display: flex;
}

.dist-vbox {
  display: flex;
  flex-direction: column;
}

.flex-box {
  flex: 1;
}

.text-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.align-center{
  align-items: center;
}

.justify-content-between{
  justify-content: space-between;
}

.no-scroll{
  overflow: hidden;
}

.update-field-view{
  .ant-modal-header{
    height: 36px;
    background: #988cda;
    padding: 8px 20px;
  }
  .ant-modal-close-x{
    height: 36px;
    line-height: 36px;
  }
}

.pt20 {
  padding-top: 20px;
}
.pb20 {
  padding-bottom: 20px;
}
.pr20 {
  padding-right: 20px;
}
.mb10{
  margin-bottom: 10px
}

.ant-modal-max {
  position: absolute;
  top: 0;
  right: 56px;
  z-index: 10;
  padding: 0;
  color: white;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  background: transparent;
  border: 0;
  outline: 0;
  cursor: pointer;
  transition: color 0.3s;
}

.ant-modal-min {
  position: absolute;
  top: 0;
  right: 112px;
  z-index: 10;
  padding: 0;
  color: white;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  background: transparent;
  border: 0;
  outline: 0;
  cursor: pointer;
  transition: color 0.3s;
}
.projectNameStyle{
  text-decoration: underline;
  color: #2caef2;
  cursor: pointer !important;
  width: 100%;
  text-overflow: ellipsis;
  overflow: hidden;
}
.ant-form-item-control .ant-form-explain{
  display: block !important;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-transition-delay: 99999s;
  -webkit-transition: color 99999s ease-out, background-color 99999s ease-out;
}

.upload-model{
  .ant-modal{
    width: 300px !important;
  }
  .ant-modal-header{
    background-color: #5a9cf8;
  }
  .ant-modal-body{
    display: flex;
    .b-upload{
      display: flex;
      flex: 1;
      .title{
        margin-right: 5px;
      }
      .upload-span{
        cursor: pointer;
      }
    }
  }
  .ant-modal-footer{
    display: none;
  }
}

.form-warning{
  .ant-notification-notice-message{
    color: red;
  }
  .ant-notification-notice-description{
    margin-top: 5px;
    margin-left: 0;
  }
}

.dist-box-table{
  .ant-spin-container{
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    .ant-table{
      flex: 1;
      overflow: auto;
    }
    .ant-table-pagination{
      width: 100%;
      text-align: right;
      align-self: flex-end !important;
    }
  }
}
